/* 仪表盘专用样式 */
.dashboard {
    padding: 30px 0;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 欢迎区域 */
.welcome-section {
    margin-bottom: 30px;
}

.welcome-card {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.welcome-card h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* 行为分析区域 */
.behavior-section {
    margin-bottom: 40px;
}

.behavior-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.behavior-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.behavior-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #212529;
}

.radar-container {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.behavior-tag {
    background-color: #f8f9fa;
    border-left: 4px solid #4361ee;
    border-radius: 5px;
    padding: 15px;
    flex: 1 1 calc(50% - 15px);
    min-width: 200px;
}

.behavior-tag.overconfidence {
    border-left-color: #e63946;
}

.behavior-tag.lossAversion {
    border-left-color: #f4a261;
}

.behavior-tag.dispositionEffect {
    border-left-color: #2a9d8f;
}

.behavior-tag.confirmationBias {
    border-left-color: #e9c46a;
}

.behavior-tag.herdBehavior {
    border-left-color: #9d4edd;
}

.behavior-tag h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #212529;
}

.behavior-tag p {
    font-size: 14px;
    color: #6c757d;
}

.no-tags {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* 洞察区域 */
.insights-section {
    margin-bottom: 40px;
}

.insights-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.insight {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #4361ee;
}

.insight.warning {
    border-left-color: #e63946;
}

.insight.positive {
    border-left-color: #2a9d8f;
}

.insight h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #212529;
}

.insight p {
    margin-bottom: 10px;
    color: #495057;
}

.suggestion {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    font-style: italic;
    color: #6c757d;
}

/* 交易记录区域 */
.transactions-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.transactions-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.transaction-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.asset {
    font-weight: 600;
    color: #212529;
}

.type {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.type.buy {
    background-color: #d1e7dd;
    color: #0f5132;
}

.type.sell {
    background-color: #f8d7da;
    color: #721c24;
}

.amount {
    color: #6c757d;
}

.profit {
    font-weight: 600;
}

.profit.positive {
    color: #2a9d8f;
}

.profit.negative {
    color: #e63946;
}

.transaction-date {
    color: #6c757d;
    font-size: 14px;
}

.no-transactions {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* 快速操作区域 */
.actions-section {
    margin-bottom: 40px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.action-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.action-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #212529;
}

.action-card p {
    color: #6c757d;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .behavior-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .transaction-main {
        flex-wrap: wrap;
    }
    
    .actions-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .tags-container {
        flex-direction: column;
    }
    
    .behavior-tag {
        min-width: 100%;
    }
}